#include"BinaryTree.h"

int main()
{
	BTDataType a[] = "ABD##E##CF##G##";
	int i = 0;
	BTNode* root = BinaryTreeCreate(a, &i);
	
	int size = BinaryTreeSize(root);
	printf("BinaryTreeSize: %d\n", size);

	int leaf = BinaryTreeLeafSize(root);
	printf("BinaryTreeLeafSize: %d\n", leaf);

	int k = 3;
	int level = BinaryTreeLevelKSize(root, k);
	printf("BinaryTreeLevelKSize: %d\n", level);

	BinaryTreePrevOrder(root);
	printf("\n");

	BinaryTreeInOrder(root);
	printf("\n");

	BinaryTreePostOrder(root);
	printf("\n");

	BinaryTreeLevelOrder(root);
	printf("\n");

	bool ret = BinaryTreeComplete(root);
	printf("BinaryTreeComplete: %d\n", ret);

	BinaryTreeDestory(root);
	root = NULL;
	return 0;
}